package com.aifast.system.sys.entity;

import com.aifast.common.base.BaseEntity;
import com.aifast.common.dict.DictBind;
import com.aifast.common.dict.DictBindEasyExcelConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 租户套餐对象 sys_tenant_package
 *
 * @author fujian
 * @date 2022-10-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysTenantPackage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 租户id
     */
    @ExcelProperty("租户id")
    @NotBlank(message = "${comment} 不能为空！")
    private Integer tenantId;

    /**
     * 套餐名称
     */
    @ExcelProperty("套餐名称")
    private String name;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = DictBindEasyExcelConverter.class)
    @DictBind(type = "state")
    private Integer state;

    /**
     * 备注
     */
    @ExcelProperty("备注")
    private String remarks;

    /**
     * 关联菜单
     */
    @ExcelProperty("关联菜单")
    private String menuIds;

}
